| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | const NewFormButton = { |
||
| 18 | getNewForm() { |
||
| 19 | const index = this.getNextIndex(); |
||
| 20 | const newForm = document.createElement('fieldset'); |
||
| 21 | newForm.setAttribute('class', 'code-form--file'); |
||
| 22 | newForm.setAttribute('data-index', index); |
||
| 23 | |||
| 24 | newForm.innerHTML = |
||
| 25 | `<label class="code-form--label" for="name[${index}]">Nazwa pliku (opcjonalna)</label> |
||
| 26 | <input type="text" id="name[${index}]" name="name[${index}]" class="code-form--control"> |
||
| 27 | <label for="content[${index}]" class="code-form--label">Treść pliku</label> |
||
| 28 | <textarea name="content[${index}]" id="content[${index}]" rows="10" class="code-form--control code-form--control__textarea"></textarea>`; |
||
| 29 | |||
| 30 | return newForm; |
||
| 31 | }, |
||
| 32 | |||
| 41 |